{[include file="../../../../library/view/templates/header.tpl"]}
<script src="{[$host]}js/member/memberEdit.js" type="text/javascript"></script>
{[include file="../../../../library/view/templates/tag/error.tpl"]}
<div class="BSpace10px"></div>
<div id="BMainTitleH1">{[$title]}</div>
<div class="BFence">
<h2>{[$member_00002_Title]}</h2>
<div class="BSpace10px"></div>
<span class="Btextlightred">(*)</span>{[$member_00002_Notice]}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <div class="BFenceTopLeft">
            </div>
            <div class="BFenceTopRight">
            </div>
        </td>
    </tr>
    <tr>
        <td class="BFenceSideLine">
            <div class="BLittleTitle">{[$member_00002_Title2]}</div>
            <table class="BGrayLineTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-bottom:0px">
                <tbody>
                    <tr>
                        <td class="BListLabel" width="25%" colspan="2">
                            {[$member_00002_Member]}ID
                        </td>
                        <td>
                            <input type="text" id="txtMemberId" name="txtMemberId" size="40" value="{[$arrSearchData.MEMBER_ID]}"/>&nbsp;<span class="Btextlightred">(*)</span>
                            {[if $flag == "2"]}
                            <input type="hidden" id="hidMemberNo" name="hidMemberNo" value="{[$arrSearchData.MEMBER_NO]}"/>
                            <input type="hidden" id="hidDataVersion" name="hidDataVersion" value="{[$arrSearchData.DATA_VERSION]}"/>
                            {[/if]}
                        </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_MemberName]}
                            </td>
                            <td>
                                <input type="text" id="txtMemberName" name="txtMemberName" size="40" value="{[$arrSearchData.MEMBER_NAME]}"/>&nbsp;<span class="Btextlightred">(*)</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                    {[$member_00002_SaleTp]}
                            </td>
                            <td>
                                <label><input type="radio" {[if $arrSearchData.SALE_TP != "2"]}checked{[/if]} id="rdoSaleTp" name="rdoSaleTp" value="1"/>&nbsp;{[$member_00002_Factory]}</label>&nbsp;
                                <label><input type="radio" {[if $arrSearchData.SALE_TP == "2"]}checked{[/if]} id="rdoSaleTp" name="rdoSaleTp" value="2"/>&nbsp;{[$member_00002_Seller]}</label>
                            </td>
                        </tr>
                         <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Prov]}
                            </td>
                            <td>
                                <select id="selProv" name="selProv" class="selectable">
                                {[foreach from=$arrProv key=key item=item]}
                                    <option value="{[$item.KEY_CODE]}" {[if $arrSearchData.PROV_CODE == $item.KEY_CODE]}selected{[/if]}>{[$item.KEY_NAME]}</option>
                                {[/foreach]}
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" rowspan="2">
                                {[$member_00002_Position]}
                            </td>
                            <td class="BListLabel">
                                {[$member_00002_City]}
                            </td>
                            <td>
                                <input type="text" id="txtCity" name="txtCity" size="40" value="{[$arrSearchData.CITY]}"/>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel">
                                {[$member_00002_Address]}
                            </td>
                            <td>
                                <input type="text" id="txtDistrict" name="txtDistrict" size="40" value="{[$arrSearchData.DISTRICT]}"/>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                            {[$member_00002_Status]}
                            </td>
                            <td>
                                <label><input type="radio" {[if $arrSearchData.STATUS != "2"]}checked{[/if]} id="rdoMemberStatus" name="rdoMemberStatus" value="1"/>&nbsp;{[$member_00002_Trust]}</label>&nbsp;
                                <label><input type="radio" {[if $arrSearchData.STATUS == "2"]}checked{[/if]} id="rdoMemberStatus" name="rdoMemberStatus" value="2"/>&nbsp;{[$member_00002_NoTrust]}</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                            {[$member_00002_Scale]}
                            </td>
                            <td>
                                <label><input type="radio" {[if $arrSearchData.SCALE == "1"||($arrSearchData.SCALE != "2" && $arrSearchData.SCALE != "3")]}checked{[/if]} id="rdoMemberScale" name="rdoMemberScale" value="1"/>&nbsp;100{[$member_00002_People]}{[$member_00002_Less]}</label>&nbsp;
                                <label><input type="radio" {[if $arrSearchData.SCALE == "2"]}checked{[/if]} id="rdoMemberScale" name="rdoMemberScale" value="2"/>&nbsp;100{[$member_00002_People]}～500{[$member_00002_People]}</label>&nbsp;
                                <label><input type="radio" {[if $arrSearchData.SCALE == "3"]}checked{[/if]} id="rdoMemberScale" name="rdoMemberScale" value="3"/>&nbsp;500{[$member_00002_People]}{[$member_00002_More]}</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_ContractNo]}
                            </td>
                            <td>
                                <input type="text" id="txtContractNo" name="txtContractNo" size="40" value="{[$arrSearchData.CONTRACT_NO]}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Tel]}
                            </td>
                            <td>
                                <input type="text" id="txtTel" name="txtTel" style="width: 77px" value="{[$arrSearchData.TEL]}"/>&nbsp;<span>{[$member_00002_Message1]}</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Mobile]}
                            </td>
                            <td>
                                <input type="text" id="txtMobile" name="txtMobile" style="width: 77px" value="{[$arrSearchData.MOBILE]}"/>&nbsp;<span>{[$member_00002_Message1]}</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Fax]}
                            </td>
                            <td>
                                <input type="text" id="txtFax" name="txtFax" style="width: 77px" value="{[$arrSearchData.FAX]}"/>&nbsp;<span>{[$member_00002_Message1]}</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Email]}
                            </td>
                            <td>
                                <input type="text" id="txtEmail" name="txtEmail" size="40" value="{[$arrSearchData.EMAIL]}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                QQ
                            </td>
                            <td>
                                <input type="text" id="txtQQ" name="txtQQ" size="40" value="{[$arrSearchData.QQ]}"/>&nbsp;<span>{[$member_00002_Message1]}</span>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                MSN
                            </td>
                            <td>
                                <input type="text" id="txtMSN" name="txtMSN" size="40" value="{[$arrSearchData.MSN]}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Ali]}
                            </td>
                            <td>
                                <input type="text" id="txtAli" name="txtAli" size="40" value="{[$arrSearchData.ALI]}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" colspan="2">
                                {[$member_00002_Homepage]}
                            </td>
                            <td>
                                <input type="text" id="txtHomepage" name="txtHomepage" size="40" value="{[$arrSearchData.HOMEPAGE_URL]}"/>&nbsp;<span>{[$member_00002_Example]}）http://www.baidu.com</span>&nbsp;
                            </td>
                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <div class="BFenceBottomLeft">
            </div>
            <div class="BFenceBottomRight">
            </div>
        </td>
    </tr>
</table>
<div class="BSpace20px"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <div class="BFenceTopLeft">
            </div>
            <div class="BFenceTopRight">
            </div>
        </td>
    </tr>
    <tr>
        <td class="BFenceSideLine">
            <div class="BLittleTitle">{[$member_00002_Title3]}</div>
            <table class="BGrayLineTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-bottom:0px">
                <tbody>
                        <tr>
                            <td class="BListLabel" rowspan="2">
                            {[$member_00002_PaymentKind]}1
                            </td>
                            <td class="BListLabel">
                            {[$member_00002_PaymentMethod]}
                            </td>
                            <td>
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP1 == "0"||($arrSearchData.PAYMENTKIND_TP1 != "1" &&$arrSearchData.PAYMENTKIND_TP1 != "2" && $arrSearchData.PAYMENTKIND_TP1 != "3")]}checked{[/if]} id="rdoPaymentTp1" name="rdoPaymentTp1" value="0"/>&nbsp;{[$member_00002_NotUse]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP1 == "1"]}checked{[/if]} id="rdoPaymentTp1" name="rdoPaymentTp1" value="1"/>&nbsp;{[$member_00002_Bank]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP1 == "2"]}checked{[/if]} id="rdoPaymentTp1" name="rdoPaymentTp1" value="2"/>&nbsp;{[$member_00002_Epay]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP1 == "3"]}checked{[/if]} id="rdoPaymentTp1" name="rdoPaymentTp1" value="3"/>&nbsp;{[$member_00002_Cash]}</label>
                            </td>
                        </tr>
                        <tr >
                        <td class="BListLabel">
                            {[$member_00002_Account]}
                            </td>
                            <td>
                                <input type="text" id="txtAccount1" name="txtAccount1" size="40" value="{[$arrSearchData.ACCOUNT1]}"
                                {[if $arrSearchData.PAYMENTKIND_TP1 == "0"||($arrSearchData.PAYMENTKIND_TP1 != "1" &&$arrSearchData.PAYMENTKIND_TP1 != "2" && $arrSearchData.PAYMENTKIND_TP1 != "3")]} disabled{[/if]}
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" rowspan="2">
                            {[$member_00002_PaymentKind]}2
                            </td>
                            <td class="BListLabel">
                            {[$member_00002_PaymentMethod]}
                            </td>
                            <td>
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP2 == "0"||($arrSearchData.PAYMENTKIND_TP2 != "1" &&$arrSearchData.PAYMENTKIND_TP2 != "2" && $arrSearchData.PAYMENTKIND_TP2 != "3")]}checked{[/if]} id="rdoPaymentTp2" name="rdoPaymentTp2" value="0"/>&nbsp;{[$member_00002_NotUse]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP2 == "1"]}checked{[/if]} id="rdoPaymentTp2" name="rdoPaymentTp2" value="1"/>&nbsp;{[$member_00002_Bank]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP2 == "2"]}checked{[/if]} id="rdoPaymentTp2" name="rdoPaymentTp2" value="2"/>&nbsp;{[$member_00002_Epay]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP2 == "3"]}checked{[/if]} id="rdoPaymentTp2" name="rdoPaymentTp2" value="3"/>&nbsp;{[$member_00002_Cash]}</label>
                            </td>
                        </tr>
                        <tr>
                        <td class="BListLabel">
                            {[$member_00002_Account]}
                            </td>
                            <td>
                                <input type="text" id="txtAccount2" name="txtAccount2" size="40" value="{[$arrSearchData.ACCOUNT2]}"
                                 {[if $arrSearchData.PAYMENTKIND_TP2 == "0"||($arrSearchData.PAYMENTKIND_TP2 != "1" &&$arrSearchData.PAYMENTKIND_TP2 != "2" && $arrSearchData.PAYMENTKIND_TP2 != "3")]} disabled{[/if]}
                                />
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel" rowspan="2">
                            {[$member_00002_PaymentKind]}3
                            </td>
                            <td class="BListLabel">
                            {[$member_00002_PaymentMethod]}
                            </td>
                            <td>
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP3 == "0"||($arrSearchData.PAYMENTKIND_TP3 != "1" &&$arrSearchData.PAYMENTKIND_TP3 != "2" && $arrSearchData.PAYMENTKIND_TP3 != "3")]}checked{[/if]} id="rdoPaymentTp3" name="rdoPaymentTp3" value="0"/>&nbsp;{[$member_00002_NotUse]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP3 == "1"]}checked{[/if]} id="rdoPaymentTp3" name="rdoPaymentTp3" value="1"/>&nbsp;{[$member_00002_Bank]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP3 == "2"]}checked{[/if]} id="rdoPaymentTp3" name="rdoPaymentTp3" value="2"/>&nbsp;{[$member_00002_Epay]}</label>&nbsp;
                                <label><input type="radio" onclick="member_paymentChecked(this)" {[if $arrSearchData.PAYMENTKIND_TP3 == "3"]}checked{[/if]} id="rdoPaymentTp3" name="rdoPaymentTp3" value="3"/>&nbsp;{[$member_00002_Cash]}</label>
                            </td>
                        </tr>
                        <tr>
                        <td class="BListLabel">
                            {[$member_00002_Account]}
                            </td>
                            <td>
                                <input type="text" id="txtAccount3" name="txtAccount3" size="40" value="{[$arrSearchData.ACCOUNT3]}"
                                 {[if $arrSearchData.PAYMENTKIND_TP3 == "0"||($arrSearchData.PAYMENTKIND_TP3 != "1" &&$arrSearchData.PAYMENTKIND_TP3 != "2" && $arrSearchData.PAYMENTKIND_TP3 != "3")]} disabled{[/if]}
                                />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <div class="BFenceBottomLeft">
                </div>
                <div class="BFenceBottomRight">
                </div>
            </td>
    </tr>
</table>
<div class="BSpace20px"></div>
<div align="center">
    <input type="button" class="BGrayBtn" id="btnSave" value="{[$member_00002_Save]}" onClick="member_memberSave('{[$flag]}')" />&nbsp;
{[if $flag == "2"]}
    <input type="button" class="BGrayBtn" id="btnDelete" value="{[$member_00002_Delete]}" onClick="member_memberDeleteConfirm()"/>
{[/if]}
</div>
<div class="BSpace20px"></div>
<a href="{[$host]}member/memberList/index/ReturnFg/1">{[$goBack]}</a>
{[include file="../../../../library/view/templates/footer.tpl"]}